Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove debug loggers devp2p #3165

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Remove debug loggers devp2p #3165

merged 2 commits into from
Nov 27, 2023

Conversation

jochem-brouwer
Copy link
Member

This PR removes debug calls in the devp2p package if no DEBUG flag is set. This ensures that we do not create debug strings which we later throw away if no logger is attached. This was already the case in the eth protocol, but this is now package-wide. the only place where it is not added is in assertEq in util.ts

Copy link

codecov bot commented Nov 26, 2023

Codecov Report

Merging #3165 (a7c798a) into master (0170906) will decrease coverage by 0.30%.
The diff coverage is 67.84%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.80% <ø> (ø)
blockchain 91.61% <ø> (ø)
client 84.87% <ø> (-0.04%) ⬇️
common 98.19% <ø> (ø)
devp2p 82.09% <67.84%> (?)
ethash ∅ <ø> (∅)
evm 71.94% <ø> (ø)
statemanager 90.13% <ø> (ø)
trie 89.76% <ø> (+0.04%) ⬆️
tx 95.73% <ø> (ø)
util 88.90% <ø> (ø)
vm 81.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM

@holgerd77 holgerd77 merged commit c185241 into master Nov 27, 2023
45 of 46 checks passed
@holgerd77 holgerd77 deleted the remove-debug-loggers-devp2p branch November 27, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants